import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/',
            redirect: '/dashboard'
        },
        {
            path: '/',
            component: () => import( /* webpackChunkName: "home" */ '../components/common/Home.vue'),
            meta: {
                title: '自述文件'
            },
            children: [
                //人事
                {
                    path: '/dashboard',
                    component: () => import('../views/system/organization/organization.vue'),
                    meta: {
                        title: '组织机构'
                    }
                },
                {
                    path: '/employee',
                    component: () => import('../views/hr/employeeController/employee.vue'),
                    meta: {
                        title: '人员档案'
                    }
                },
                {
                    path: '/employeeList',
                    component: () => import('../views/hr/employeeController/employeeList.vue'),
                    meta: {
                        title: '在职人员档案'
                    }
                },
                {
                    path: '/employeeDetail',
                    component: () => import('../views/hr/employeeController/employeeDetail.vue'),
                    meta: {
                        title: '人员档案详情'
                    }
                },
                {
                    path: '/contractList',
                    component: () => import('../views/hr/contract/contractList.vue'),
                    meta: {
                        title: '人事合同'
                    }
                },
                {
                    path: '/addContract',
                    component: () => import('../views/hr/contract/addContract.vue'),
                    meta: {
                        title: '人事合同编辑'
                    }
                },
                {
                    path: '/contractDetail',
                    component: () => import('../views/hr/contract/contractDetail.vue'),
                    meta: {
                        title: '人事合同详情'
                    }
                },
                {
                    path: '/applicationList',
                    component: () => import('../views/hr/qualified/applicationList.vue'),
                    meta: {
                        title: '转正申请列表'
                    }
                },
                {
                    path: '/application',
                    component: () => import('../views/hr/qualified/application.vue'),
                    meta: {
                        title: '转正申请'
                    }
                },
                {
                    path: '/applicationDetail',
                    component: () => import('../views/hr/qualified/applicationDetail.vue'),
                    meta: {
                        title: '转正申请详情'
                    }
                },
                {
                    path: '/quitList',
                    component: () => import('../views/hr/quit/quitList.vue'),
                    meta: {
                        title: '离职列表'
                    }
                },
                {
                    path: '/quit',
                    component: () => import('../views/hr/quit/quit.vue'),
                    meta: {
                        title: '离职申请单'
                    }
                },
                {
                    path: '/quitDetail',
                    component: () => import('../views/hr/quit/quitDetail.vue'),
                    meta: {
                        title: '离职申请详情'
                    }
                },
                {
                    path: '/transferList',
                    component: () => import('../views/hr/transfer/transferList.vue'),
                    meta: {
                        title: '人事调动列表'
                    }
                },
                {
                    path: '/transfer',
                    component: () => import('../views/hr/transfer/transfer.vue'),
                    meta: {
                        title: '人事调动编辑'
                    }
                },
                {
                    path: '/transferDetail',
                    component: () => import('../views/hr/transfer/transferDetail.vue'),
                    meta: {
                        title: '人事调动详情'
                    }
                },
                {
                    path: '/welfareList',
                    component: () => import('../views/hr/welfare/welfareList.vue'),
                    meta: {
                        title: '员工福利列表'
                    }
                },
                {
                    path: '/welfare',
                    component: () => import('../views/hr/welfare/welfare.vue'),
                    meta: {
                        title: '员工福利编辑'
                    }
                },
                {
                    path: '/welfareDetail',
                    component: () => import('../views/hr/welfare/welfareDetail.vue'),
                    meta: {
                        title: '员工福利详情'
                    }
                },
                {
                    path: '/certificatesList',
                    component: () => import('../views/hr/certificates/certificatesList.vue'),
                    meta: {
                        title: '证件列表'
                    }
                },
                {
                    path: '/certificates',
                    component: () => import('../views/hr/certificates/certificates.vue'),
                    meta: {
                        title: '证件编辑'
                    }
                },
                {
                    path: '/certificatesDetail',
                    component: () => import('../views/hr/certificates/certificatesDetail.vue'),
                    meta: {
                        title: '证件详情'
                    }
                },
                {
                    path: '/assessment',
                    component: () => import('../views/hr/assessment/assessment.vue'),
                    meta: {
                        title: '考核模板'
                    }
                },
                {
                    path: '/assessmentList',
                    component: () => import('../views/hr/assessment/assessmentList.vue'),
                    meta: {
                        title: '考核模板列表'
                    }
                },
                {
                    path: '/assessmentDetail',
                    component: () => import('../views/hr/assessment/assessmentDetail.vue'),
                    meta: {
                        title: '考核模板详情'
                    }
                },
                {
                    path: '/assessmentSelf',
                    component: () => import('../views/hr/assessment/assessmentSelf.vue'),
                    meta: {
                        title: '发起自评'
                    }
                },
                {
                    path: '/assessmentSelfList',
                    component: () => import('../views/hr/assessment/assessmentSelfList.vue'),
                    meta: {
                        title: '我的自评列表'
                    }
                },
                {
                    path: '/assessmentSubList',
                    component: () => import('../views/hr/assessment/assessmentSubList.vue'),
                    meta: {
                        title: '考核下属记录'
                    }
                },
                {
                    path: '/assessmentSubDetail',
                    component: () => import('../views/hr/assessment/assessmentSubDetail.vue'),
                    meta: {
                        title: '考核详情'
                    }
                },
                {
                    path: '/assessmentAllList',
                    component: () => import('../views/hr/assessment/assessmentAllList.vue'),
                    meta: {
                        title: '所有考核记录'
                    }
                },
                {
                    path: '/assessmentSub',
                    component: () => import('../views/hr/assessment/assessmentSub.vue'),
                    meta: {
                        title: '考核下属'
                    }
                },
                //系统
                {
                    path: '/organization',
                    component: () => import('../views/system/organization/organization.vue'),
                    meta: {
                        title: '组织机构'
                    }
                },
                {
                    path: '/jobsettingList',
                    component: () => import('../views/system/organization/jobsettingList.vue'),
                    meta: {
                        title: '岗位设置'
                    }
                },
                {
                    path: '/jobsetting',
                    component: () => import('../views/system/organization/jobsetting.vue'),
                    meta: {
                        title: '岗位编辑'
                    }
                },
                {
                    path: '/organizationChart',
                    component: () => import('../views/system/organization/organizationChart.vue'),
                    meta: {
                        title: '组织架构图'
                    }
                },
                {
                    path: '/roleList',
                    component: () => import('../views/system/rolepermissions/roleList.vue'),
                    meta: {
                        title: '角色列表'
                    }
                },
                {
                    path: '/permissionsList',
                    component: () => import('../views/system/rolepermissions/permissionsList.vue'),
                    meta: {
                        title: '权限列表'
                    }
                },
                {
                    path: '/rolepermissionsrel',
                    component: () => import('../views/system/rolepermissions/rolepermissionsrel.vue'),
                    meta: {
                        title: '角色权限关联'
                    }
                },
                {
                    path: '/useraccountList',
                    component: () => import('../views/system/account/useraccountList.vue'),
                    meta: {
                        title: '用户账号列表'
                    }
                },
                {
                    path: '/useraccount',
                    component: () => import('../views/system/account/useraccount.vue'),
                    meta: {
                        title: '用户账号编辑'
                    }
                },
                {
                    path: '/forcedmodification',
                    component: () => import('../views/system/account/forcedmodification.vue'),
                    meta: {
                        title: '强制改密'
                    }
                },
                {
                    path: '/useraccountDetail',
                    component: () => import('../views/system/account/useraccountDetail.vue'),
                    meta: {
                        title: '用户账号详情'
                    }
                },






                // 基础资料管理

                {
                    path: '/taxonomyList',
                    component: () => import('../views/baseData/otherTaxonomy/taxonomyList.vue'),
                    meta: {
                        title: '分类类别'
                    }
                },
                {
                    path: '/taxonomyAttributeList',
                    component: () => import('../views/baseData/otherTaxonomy/taxonomyAttributeList.vue'),
                    meta: {
                        title: '分类属性设置'
                    }
                },
                {
                    path: '/taxonomyAttribute',
                    component: () => import('../views/baseData/otherTaxonomy/taxonomyAttribute.vue'),
                    meta: {
                        title: '分类属性'
                    }
                },
                
                // 资料管理
                {
                    path: '/pdmType',
                    component: () => import('../views/pdm/pdmType/pdmType.vue'),
                    meta: {
                        title: '资料类型'
                    }
                },

                // 客户资料
                {
                    path: '/customerInfo',
                    component: () => import('../views/customer/customerInfo/customerInfo.vue'),
                    meta: {
                        title: '客户信息'
                    }
                },
                {
                    path: '/customerInfoList',
                    component: () => import('../views/customer/customerInfo/customerInfoList.vue'),
                    meta: {
                        title: '客户信息列表'
                    }
                },
                {
                    path: '/customerInfoDetail',
                    component: () => import('../views/customer/customerInfo/customerInfoDetail.vue'),
                    meta: {
                        title: '客户信息详情'
                    }
                },
                {
                    path: '/customerAttrs',
                    component: () => import('../views/customer/customerInfo/customerAttrs.vue'),
                    meta: {
                        title: '自定义客户属性列表'
                    }
                },
                {
                    path: '/myCustomerList',
                    component: () => import('../views/customer/myCustomer/myCustomerList.vue'),
                    meta: {
                        title: '我的客户'
                    }
                },
                {
                    path: '/customerAllocationList',
                    component: () => import('../views/customer/customerAllocation/customerAllocationList.vue'),
                    meta: {
                        title: '客户分配列表'
                    }
                },
                {
                    path: '/customerAllocation',
                    component: () => import('../views/customer/customerAllocation/customerAllocation.vue'),
                    meta: {
                        title: '客户分配'
                    }
                },
                {
                    path: '/relationshipRecordList',
                    component: () => import('../views/customer/relationshipRecord/relationshipRecordList.vue'),
                    meta: {
                        title: '联系记录列表'
                    }
                },
                {
                    path: '/relationshipRecord',
                    component: () => import('../views/customer/relationshipRecord/relationshipRecord.vue'),
                    meta: {
                        title: '联系记录'
                    }
                },
                {
                    path: '/relationshipRecordDetail',
                    component: () => import('../views/customer/relationshipRecord/relationshipRecordDetail.vue'),
                    meta: {
                        title: '联系记录详情'
                    }
                },
                {
                    path: '/giftCareList',
                    component: () => import('../views/customer/giftCare/giftCareList.vue'),
                    meta: {
                        title: '礼品关怀列表'
                    }
                },
                {
                    path: '/giftCare',
                    component: () => import('../views/customer/giftCare/giftCare.vue'),
                    meta: {
                        title: '礼品关怀'
                    }
                },

                {
                    path: '/customerContractList',
                    component: () => import('../views/customer/customerContract/customerContractList.vue'),
                    meta: {
                        title: '合同信息列表'
                    }
                },
                {
                    path: '/customerContract',
                    component: () => import('../views/customer/customerContract/customerContract.vue'),
                    meta: {
                        title: '合同信息'
                    }
                },
                {
                    path: '/customerContractDetail',
                    component: () => import('../views/customer/customerContract/customerContractDetail.vue'),
                    meta: {
                        title: '合同信息'
                    }
                },
                {
                    path: '/collectionPlanList',
                    component: () => import('../views/customer/collectionPlan/collectionPlanList.vue'),
                    meta: {
                        title: '收款计划列表'
                    }
                },
                {
                    path: '/collectionPlan',
                    component: () => import('../views/customer/collectionPlan/collectionPlan.vue'),
                    meta: {
                        title: '收款计划'
                    }
                },
                {
                    path: '/receiptInformationList',
                    component: () => import('../views/customer/receiptInformation/receiptInformationList.vue'),
                    meta: {
                        title: '发票信息列表'
                    }
                },
                {
                    path: '/receiptInformation',
                    component: () => import('../views/customer/receiptInformation/receiptInformation.vue'),
                    meta: {
                        title: '发票信息'
                    }
                },
                {
                    path: '/regionInfoList',
                    component: () => import('../views/customer/region/regionInfoList.vue'),
                    meta: {
                        title: '区域管理'
                    }
                },
                {
                    path: '/transitUnitList',
                    component: () => import('../views/customer/transitUnit/transitUnitList.vue'),
                    meta: {
                        title: '往来单位分类列表'
                    }
                },
                {
                    path: '/transitUnit',
                    component: () => import('../views/customer/transitUnit/transitUnit.vue'),
                    meta: {
                        title: '往来单位分类'
                    }
                },


                {
                    path: '/accountBookList',
                    component: () => import('../views/finance/accountBook/accountBookList.vue'),
                    meta: {
                        title: '总账管理'
                    }
                },
                {
                    path: '/accountBookDetail',
                    component: () => import('../views/finance/accountBook/accountBookDetail.vue'),
                    meta: {
                        title: '总账明细'
                    }
                },
                {
                    path: '/generalLedger',
                    component: () => import('../views/finance/certificates/generalLedger.vue'),
                    meta: {
                        title: '总账凭证'
                    }
                },

                {
                    path: '/editGeneralLedger',
                    component: () => import('../views/finance/certificates/editGeneralLedger.vue'),
                    meta: {
                        title: '凭证'
                    }
                },
                {
                    path: '/generalLedgerDetail',
                    component: () => import('../views/finance/certificates/generalLedgerDetail.vue'),
                    meta: {
                        title: '凭证明细详情'
                    }
                },

                {
                    path: '/subjectManagement',
                    component: () => import('../views/finance/basicDataSet/subjectManagement.vue'),
                    meta: {
                        title: '科目管理'
                    }
                },
                {
                    path: '/subjectManagementDetail',
                    component: () => import('../views/finance/basicDataSet/subjectManagementDetail.vue'),
                    meta: {
                        title: '科目管理编辑'
                    }
                },
                {
                    path: '/currencyExchangeRate',
                    component: () => import('../views/finance/basicDataSet/currencyExchangeRate.vue'),
                    meta: {
                        title: '币别汇率'
                    }
                },
                {
                    path: '/currencyExchangeRateDetail',
                    component: () => import('../views/finance/basicDataSet/currencyExchangeRateDetail.vue'),
                    meta: {
                        title: '币别汇率编辑'
                    }
                },
                {
                    path: '/currencymanage',
                    component: () => import('../views/finance/basicDataSet/currencymanage.vue'),
                    meta: {
                        title: '币别维护'
                    }
                },
                {
                    path: '/currencymanageDetail',
                    component: () => import('../views/finance/basicDataSet/currencymanageDetail.vue'),
                    meta: {
                        title: '币别维护编辑'
                    }
                },

                {
                    path: '/singleSet',
                    component: () => import('../views/finance/basicDataSet/singleSet.vue'),
                    meta: {
                        title: '单别设置'
                    }
                },
                {
                    path: '/singleSetDetail',
                    component: () => import('../views/finance/basicDataSet/singleSetDetail.vue'),
                    meta: {
                        title: '单别设置编辑'
                    }
                },
                {
                    path: '/bankAccount',
                    component: () => import('../views/finance/basicDataSet/bankAccount.vue'),
                    meta: {
                        title: '银行账户'
                    }
                },
                {
                    path: '/bankAccountDetail',
                    component: () => import('../views/finance/basicDataSet/bankAccountDetail.vue'),
                    meta: {
                        title: '银行账户编辑'
                    }
                },
                {
                    path: '/fiscalPeriod',
                    component: () => import('../views/finance/basicDataSet/fiscalPeriod.vue'),
                    meta: {
                        title: '会计期间'
                    }
                },
                {
                    path: '/fiscalPeriodDetail',
                    component: () => import('../views/finance/basicDataSet/fiscalPeriodDetail.vue'),
                    meta: {
                        title: '会计期间编辑'
                    }
                },
                {
                    path: '/accSetList',
                    component: () => import('../views/finance/accSetManagement/accSetList.vue'),
                    meta: {
                        title: '账套列表'
                    }
                },
                {
                    path: '/bankTransactionList',
                    component: () => import('../views/finance/bankTransactions/bankTransactionList.vue'),
                    meta: {
                        title: '银行往来'
                    }
                },
                {
                    path: '/bankTransaction',
                    component: () => import('../views/finance/bankTransactions/bankTransaction.vue'),
                    meta: {
                        title: '银行往来编辑'
                    }
                },
                {
                    path: '/accSet',
                    component: () => import('../views/finance/accSetManagement/accSet.vue'),
                    meta: {
                        title: '账套编辑'
                    }
                },




                {
                    path: '/404',
                    component: () => import( /* webpackChunkName: "404" */ '../views/404.vue'),
                    meta: {
                        title: '404'
                    }
                },
                {
                    path: '/403',
                    component: () => import( /* webpackChunkName: "403" */ '../views/403.vue'),
                    meta: {
                        title: '403'
                    }
                },
            ]
        },
        {
            path: '/login',
            component: () => import( /* webpackChunkName: "login" */ '../views/Login.vue'),
            meta: {
                title: '登录'
            }
        },
        {
            path: '*',
            redirect: '/404'
        }
    ]
});